package com.comum.javahomework420242025.repository;

import com.comum.javahomework420242025.pojo.Area;
import com.comum.javahomework420242025.pojo.DepartmentProduction;
import com.comum.javahomework420242025.pojo.DepartmentProductionForResult;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface DepartmentProductionRepository extends JpaRepository<DepartmentProduction, Long> {
    @Query(value = "select * from departmentproduction where productionid=:id",nativeQuery = true)
    List<DepartmentProduction> findByProductionId(String id);

}
